/**
 * 
 */
package edu.arizona.bio5.onto.decomposition.persistent;

import uk.ac.manchester.cs.graph.io.GraphNodeReader;
import edu.arizona.bio5.onto.decomposition.Atom;

/**
 * @author Pavel Klinov
 *
 */
public class PersistentAtomReader implements GraphNodeReader<Atom> {

	private AtomLoader m_atomLoader = null;
	
	public PersistentAtomReader(AtomLoader loader) {
		m_atomLoader = loader;
	}
	
	@Override
	public Atom read(String nodeString) {
		return new PersistentAtom(nodeString, m_atomLoader);
	}
}
